indefinite relative pronoun
noun
1.
a relative pronoun without an antecedent, as
whoever
in
They gave tickets to whoever wanted them.